"use strict";
(() => {
    //定义一个类型
    class Person {
        //定义一个构造函数
        constructor(firstName, lastName) {
            //更新属性
            this.firstName = firstName;
            this.lastName = lastName;
            this.fullName = this.firstName + '-' + this.lastName;
        }
    }
    //定义一个函数
    function showFullName(params) {
        return params.firstName + '-' + params.lastName;
    }
    const person = new Person('诸葛', '孔明');
    console.log(person);
    console.log(showFullName(person));
})();
